#ifndef _OBJECT_OBJ_STRING_H

#define _OBJECT_OBJ_STRING_H

#include "header_obj.h"

typedef struct 
{
    ObjHeader obj_header;
    uint32_t hash_code;// 字符从哈希值
    CharValue value;
} ObjString;

uint32_t hash_string(char *str, uint32_t length);
void hash_objString(ObjString *obj_string);
ObjString* new_objString(VM *vm, const char *str, uint32_t length);

#endif